<template>
    <div id="app">
        <h1>vue router中响应路由参数变化的踩坑</h1>
        <router-link to="/">首页</router-link>
        <router-link to="/list/1">菜单1</router-link>
        <router-link to="/list/2">菜单2</router-link>
        <router-view/>
    </div>
</template>

<script>
export default {
    name: "App",
};
</script>

<style>
#app {
    font-family: "Avenir", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
    margin-top: 60px;
}
</style>
